package com.hongyuan.sellfitness.ui.home.beans;

import com.hongyuan.sellfitness.utils.TimeUtil;

import java.util.List;

public class StorePriviteLessonBean {

    private List<ListBean> list;

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * cp_id : 3
         * cp_name : 减脂
         * m_id : 52
         * ft_id : 1
         * cp_duration : 45min
         * cp_info : 心肺功能训练，核心力量训练。功能性训练
         * cp_people : 中/少年人群
         * cp_suggest : 活动关节，激活深层肌肉。饮食摄入适中
         * cp_note :
         * cp_price : 320.00
         * cp_img : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190814/752a64aed66dc895d0ac2b9d148216cc85a86de6_975x2436.jpg
         * cp_num : 10
         * os_id : 21
         * is_ty : 2
         * is_del : 2
         * cp_state : 2
         * cp_anli_imgs : null
         * verify_desc :
         * verify_admin_id : 0
         * verify_admin_name :
         * verify_time : 0
         * is_index : 0
         * os_n : 1
         * ft_name : 减脂
         * os_name : 湖州首玺健身爱山店
         * mi_realname : 周佳城
         * coach_nickname : Jack
         * coach_head : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190810/07556b1685e33b04fcd4ffd50cd1727c014512db_200x218.jpg
         * distance_um : 265
         * last_kong_date : 2020-10-15 15:00
         */

        private int cp_id;
        private String cp_name;
        private int m_id;
        private int ft_id;
        private String cp_duration;
        private String cp_info;
        private String cp_people;
        private String cp_suggest;
        private String cp_note;
        private String cp_price;
        private String cp_img;
        private int cp_num;
        private int os_id;
        private int is_ty;
        private int is_del;
        private int cp_state;
        private Object cp_anli_imgs;
        private String verify_desc;
        private int verify_admin_id;
        private String verify_admin_name;
        private int verify_time;
        private int is_index;
        private int os_n;
        private String ft_name;
        private String os_name;
        private String mi_realname;
        private String coach_nickname;
        private String coach_head;
        private int distance_um;
        private String last_kong_date;

        public int getCp_id() {
            return cp_id;
        }

        public void setCp_id(int cp_id) {
            this.cp_id = cp_id;
        }

        public String getCp_name() {
            return cp_name;
        }

        public void setCp_name(String cp_name) {
            this.cp_name = cp_name;
        }

        public int getM_id() {
            return m_id;
        }

        public void setM_id(int m_id) {
            this.m_id = m_id;
        }

        public int getFt_id() {
            return ft_id;
        }

        public void setFt_id(int ft_id) {
            this.ft_id = ft_id;
        }

        public String getCp_duration() {
            return cp_duration;
        }

        public void setCp_duration(String cp_duration) {
            this.cp_duration = cp_duration;
        }

        public String getCp_info() {
            return cp_info;
        }

        public void setCp_info(String cp_info) {
            this.cp_info = cp_info;
        }

        public String getCp_people() {
            return cp_people;
        }

        public void setCp_people(String cp_people) {
            this.cp_people = cp_people;
        }

        public String getCp_suggest() {
            return cp_suggest;
        }

        public void setCp_suggest(String cp_suggest) {
            this.cp_suggest = cp_suggest;
        }

        public String getCp_note() {
            return cp_note;
        }

        public void setCp_note(String cp_note) {
            this.cp_note = cp_note;
        }

        public String getCp_price() {
            return cp_price;
        }

        public void setCp_price(String cp_price) {
            this.cp_price = cp_price;
        }

        public String getCp_img() {
            return cp_img;
        }

        public void setCp_img(String cp_img) {
            this.cp_img = cp_img;
        }

        public int getCp_num() {
            return cp_num;
        }

        public void setCp_num(int cp_num) {
            this.cp_num = cp_num;
        }

        public int getOs_id() {
            return os_id;
        }

        public void setOs_id(int os_id) {
            this.os_id = os_id;
        }

        public int getIs_ty() {
            return is_ty;
        }

        public void setIs_ty(int is_ty) {
            this.is_ty = is_ty;
        }

        public int getIs_del() {
            return is_del;
        }

        public void setIs_del(int is_del) {
            this.is_del = is_del;
        }

        public int getCp_state() {
            return cp_state;
        }

        public void setCp_state(int cp_state) {
            this.cp_state = cp_state;
        }

        public Object getCp_anli_imgs() {
            return cp_anli_imgs;
        }

        public void setCp_anli_imgs(Object cp_anli_imgs) {
            this.cp_anli_imgs = cp_anli_imgs;
        }

        public String getVerify_desc() {
            return verify_desc;
        }

        public void setVerify_desc(String verify_desc) {
            this.verify_desc = verify_desc;
        }

        public int getVerify_admin_id() {
            return verify_admin_id;
        }

        public void setVerify_admin_id(int verify_admin_id) {
            this.verify_admin_id = verify_admin_id;
        }

        public String getVerify_admin_name() {
            return verify_admin_name;
        }

        public void setVerify_admin_name(String verify_admin_name) {
            this.verify_admin_name = verify_admin_name;
        }

        public int getVerify_time() {
            return verify_time;
        }

        public void setVerify_time(int verify_time) {
            this.verify_time = verify_time;
        }

        public int getIs_index() {
            return is_index;
        }

        public void setIs_index(int is_index) {
            this.is_index = is_index;
        }

        public int getOs_n() {
            return os_n;
        }

        public void setOs_n(int os_n) {
            this.os_n = os_n;
        }

        public String getFt_name() {
            return ft_name;
        }

        public void setFt_name(String ft_name) {
            this.ft_name = ft_name;
        }

        public String getOs_name() {
            return os_name;
        }

        public void setOs_name(String os_name) {
            this.os_name = os_name;
        }

        public String getMi_realname() {
            return mi_realname;
        }

        public void setMi_realname(String mi_realname) {
            this.mi_realname = mi_realname;
        }

        public String getCoach_nickname() {
            return coach_nickname;
        }

        public void setCoach_nickname(String coach_nickname) {
            this.coach_nickname = coach_nickname;
        }

        public String getCoach_head() {
            return coach_head;
        }

        public void setCoach_head(String coach_head) {
            this.coach_head = coach_head;
        }

        public int getDistance_um() {
            return distance_um;
        }

        public void setDistance_um(int distance_um) {
            this.distance_um = distance_um;
        }

        public String getLast_kong_date() {
            return last_kong_date;
        }

        public void setLast_kong_date(String last_kong_date) {
            this.last_kong_date = last_kong_date;
        }

        /*
         * 处理时间的显示
         * */
        public String showTimeText(){
            if(TimeUtil.isToday(last_kong_date, TimeUtil.dateFormat)){
                return "可约时间：最近 今天"+TimeUtil.formatDate(last_kong_date,TimeUtil.dateFormat,TimeUtil.dateFormatHM);
            }
            return "可约时间：最近 "+TimeUtil.formatDate(last_kong_date,TimeUtil.dateFormat,TimeUtil.dateFormatMDHM);
        }
    }
}
